package com.zc.app.shiro.service;


import com.zc.app.shiro.peer.RolePeer;

import java.util.List;
import java.util.Set;


public interface RoleService {


    public RolePeer createRole(RolePeer role);
    public RolePeer updateRole(RolePeer role);
    public void deleteRole(Long roleId);

    public RolePeer findOne(Long roleId);
    public List<RolePeer> findAll();

    /**
     * 根据角色编号得到角色标识符列表
     * @param roleIds
     * @return
     */
    Set<String> findRoles(Long... roleIds);

    /**
     * 根据角色编号得到权限字符串列表
     * @param roleIds
     * @return
     */
    Set<String> findPermissions(Long[] roleIds);
}
